using UnityEngine;

public class BoadWindow : BaseWindow
{
	public static BoadWindow instance;

	public GameObject anchorCenter;

	public GameObject anchorRight;

	public GameObject butOutBoat;

	public GameObject interfaceForBoatWithWeapon;

	public UILabel lbCountBoatBullets;

	public static int countBoatBullets
	{
		set
		{
			if (instance != null && instance.lbCountBoatBullets != null)
			{
				instance.lbCountBoatBullets.text = string.Empty + value;
			}
		}
	}

	private void Awake()
	{
		instance = this;
	}

	private void OnDestroy()
	{
		instance = null;
	}

	private void OnEnable()
	{
	}

	private void OnDisable()
	{
	}

	public override void OnPreShow(object userData)
	{
		anchorCenter.SetActive(true);
		anchorRight.SetActive(true);
	}

	public override void OnHide()
	{
		anchorCenter.SetActive(false);
		anchorRight.SetActive(false);
	}
}
